﻿<script src="@Url.Content("~/Scripts/jquery-1.5.1.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/modernizr-1.7.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery-ui-1.8.11.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.unobtrusive-ajax.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.ui.datepicker-zh-CN.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.treeview.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.contextMenu.r2.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/SiteJs.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/SiteJs.fileInputCheck.js")" type="text/javascript"></script>
<script type="text/javascript">
    $(function () {
        $.datepicker.setDefaults($.datepicker.regional["zh-CN"]);
        $.datepicker.setDefaults({ changeMonth: true, changeYear: true });
        $('input:submit').button();
        $('button').button();
    });

    function showDialog(dialogtitle, small) {
        $('#dialogbox').dialog({ autoOpen: true, closeOnEscape: true, modal: true, title: dialogtitle, width: (small ? 345 : 690), show: "slide", hide: "slide" });
        $('input:submit').button();
        $.validator.unobtrusive.parse('#dialogbox');
    }
    function showDialogEx(dialogid, dialogtitle, small) {
        $(dialogid).dialog({ autoOpen: true, closeOnEscape: true, modal: true, title: dialogtitle, width: (small ? 460 : 690), show: "slide", hide: "slide" });
        $('input:submit').button();
        $('button').button();
        $.validator.unobtrusive.parse(dialogid);
    }

</script>
<script type="text/javascript">
    function OnSiteError(ctx, b, c) {
        if (c == "Site Action Exception") {
            var err = $.parseJSON(ctx.responseText);
            if (err) {
                alert("操作中遇到错误:\r\n" + err.error);
            } else {
                alert("操作中遇到错误，请联系管理员处理。");
            }
        }
    }
    function OnConfirmDel() {
        return confirm("请问确认要删除此内容吗？删除后将无法恢复。");
    }
</script>
